package com.example.demotest.functions;

/**
 * @version 1.0.0
 * @className: UserService
 * @description:
 * @author: zhangjunfa
 * @date: 2023/9/1 10:29
 */
@FunctionalInterface
public interface UserService {
    default User getUserById(String userId) {
        return new User(1, "RossZhang", "19");
    }

    static User getUserByAge(String age) {
        return new User(2, "张三", "20");
    }

    @Override
    boolean equals(Object obj);

    @Override
    public String toString();

    @Override
    public int hashCode();

    public User getUserByUsername(String  username);

}


